package com.aos.eap.adapter;

import com.aos.eap.R;
import com.aos.eap.bean.AlarmInfoBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.Nullable;


public class AlarmInfoListAdapter extends BaseQuickAdapter<AlarmInfoBean, BaseViewHolder> {

    public AlarmInfoListAdapter(@Nullable List<AlarmInfoBean> data) {
        super(R.layout.adapter_alarm_info_list, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final AlarmInfoBean item) {
        helper.setText(R.id.tvAlarmId, item.getAlarmID());
        helper.setText(R.id.tvAlarmCode, item.getAlarmCode());
        helper.setText(R.id.tvDesc, item.getAlarmDesc());
        helper.setText(R.id.tvTime, item.getAlarmTime());
    }
}
